<?
@ session_start();
@ini_set('display_errors', 'on');
include_once("class.lib/db.class.php");
include_once("class.lib/user.class.php");
include_once("class.lib/diplome.class.php");
include_once("class.lib/cours.class.php");
include_once("class.lib/domaine.class.php");
include_once("class.lib/mention.class.php");
include_once("class.lib/niveau.class.php");
include_once("class.lib/aa_projet.class.php");
include_once("class.lib/aa_partenaire.class.php");
include_once("class.lib/grade.class.php");

$code_ue=$_GET['id_ue'];

$coconcepteur=new aa_partenaire();
$coconcepteur->SELECT(" AND id_ue='".$code_ue."'");

$cin=$_SESSION["cin"];
if($cin=="") { header("Location: ../index.php");   }

$unite = new Projet();
$details_unite = $unite->getProjetCode($_GET['id_ue']);

$details_unite_indexation = $unite->getProjetIndexation($_GET['id_ue']);

//var_dump($details_unite);

while (list($clef,$valeur)=each($details_unite))
{  

 
 $libelle      = $valeur[1];
 $nature       = $valeur[2];
 
 $unite_enseignement = $valeur[2];
 
 $semestre     = $valeur[9];
 $volume_cours  = $valeur[4];
 $volum_td     = $valeur[6];
 $volum_tp     = $valeur[5];
 $coeifficient = $valeur[7];
 $credit       = $valeur[12];
 
 $diplome    = $valeur[8];
 $domaine    = $valeur[10];
 $mention    = $valeur[16];
 $specialite = $valeur[17];
 
$decision =$unite->getDescisionDesc($valeur[20]);



?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title> Modification de cours</title>



<script language="JavaScript">
//PLF-http://www.jejavascript.net/
function OuvrirPop(url,nom,haut,Gauche,largeur,hauteur,options) {
ouvpop=window.open(url,nom,"top="+haut+",left="+Gauche+",width="+largeur+",height="+hauteur+","+options);
}
</script>
<script type="text/javascript" src="javascript.js"></script>

<script src="scriptaculous/lib/prototype.js" type="text/javascript"></script>
<script src="scriptaculous/src/effects.js" type="text/javascript"></script>
<script type="text/javascript" src="fabtabulous.js"></script>
<script type="text/javascript" src="validation.js"></script>

<link href="presse.css" rel="stylesheet" type="text/css" />

</head>
<body bgcolor="DFE8F6">

<!--table width="677" height="575" border="0" cellpadding="0" cellspacing="0" align="center" bgcolor="DFE8F6">
    <tr>
    	<td--><H1><font color="DD0269"><? echo $libelle.' ('.$decision.') ' ;?></font></H1>
		<span style="float:right;"><a href="list_projet.php"  style="color:DD0269;" ><img src="../images/back.png"  height="20" />Revenir &agrave; la liste des cours</a></span>
   <p>
<table width="481" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="DFE8F6">
  <tr> 
      <td width="481" align="left"><strong><font color="DD0269">Consultation</font></strong>
        <br />

      </td>
    </tr>
    <tr> 
      
    <td align="left">&nbsp; </td>
    </tr>
    <tr>
      <td> 
        <table width="480" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr align="left"> 
          <td width="480" height="50"><em><font color="#277BB0"><strong> </strong></font></em> 
            <? if(!isset($_POST["valid_module"])) { ?>
           
              <table width="129%" border="0" cellpadding="0" cellspacing="0" id="tab">
                <tr> 
                  <td height="13" colspan="3" align="left" class="titrebleu2"><strong><img src="images/navi_arerow.gif" width="6" height="21" align="absmiddle" /> 
                    Information concernant le dipl&ocirc;me :</strong></td>
                </tr>
				
				
                <tr valign="top" bgcolor="#345491"> 
                  <td colspan="3"><img src="images/gif/pix.gif" width="1" height="1"></td>
                </tr>
				
				  <tr align="left"> 
                  <td width="242" height="12"><span class="Style5"><a href="#"><img src="images/info.gif" width="16" height="16" border="0" align="absmiddle" onclick='OuvrirPop("ue.html","fencent",10,10,420,380,"menubar=no,scrollbars=no,statusbar=no")' /></a></span> 
                    <span class="Style5"><font color="DD0269">*</font></span> 
                     Intitul&eacute; de Projet</td>
                  <td width="7" height="12">:</td>
                  <td width="231" height="12" class="required_info" id="unite_enseignement_zone"> <? echo $libelle; ?></td>
                </tr>
				
                <tr> 
                  <td width="123" height="12" align="left" class="titrebleu2"><span class="Style5"><font color="DD0269">*</font></span> 
                    Type de dipl&ocirc;me</td>
                  <td width="5" align="center">:</td>
                  <td width="370" align="left" class="required_info"> 
				  
                      <?php 
		          $dipl  = new Diplome();
                  $diplm = $dipl->getAllDiplome();
				  // Liste des �tablissements
                 while (list($clef,$valeur)=each($diplm)) 
				     { 
	
						if($diplome == $valeur[0]) echo $valeur[1];
						
                     }
		        ?>
                  </td>
                </tr>
                <tr> 
                  <td height="25" align="left"><span class="Style5"> <a href="#"><img src="images/info.gif" width="16" height="16" border="0" align="absmiddle" onclick='OuvrirPop("domaine.html","fencent",10,10,420,380,"menubar=no,scrollbars=no,statusbar=no")' /></a> 
                    <font color="DD0269">*</font></span> Domaine </td>
                  <td height="25">:</td>
                  <td height="25" align="left" class="required_info" id="domaine_liste"> 
				  
                     
					 <?php 
		          $dom         = new Domaine();
                  $dom_details = $dom->getAllDomaine(0);
				  // Liste des �tablissements
                 while (list($clef,$valeur)=each($dom_details)) 
				     { 
	
						if($domaine == $valeur[0]) echo $valeur[1];
						
                     }
		        ?>
					 
                    </td>
                </tr>
                <tr> 
                  <td height="25" align="left"><span class="Style5"> <a href="#"><img src="images/info.gif" width="16" height="16" border="0" align="absmiddle" onclick='OuvrirPop("mention.html","fencent",10,10,420,380,"menubar=no,scrollbars=no,statusbar=no")' /></a> 
                    <font color="DD0269">*</font></span> Mention </td>
                  <td height="25">:</td>
                  <td height="25" align="left" id="mention_liste" class="required_info"> 
				  
              
			  <?php 
		          $men         = new Mention();
                  $men_details = $men->getAllMention(0);
				  
                 while (list($clef,$valeur)=each($men_details)) 
				 { 
					if($mention == $valeur[0]) echo $valeur[1];
				 }
		        ?>
	
			  
                     </td>
                </tr>
                <!--<tr> 
                  <td height="0" align="left"><span class="Style5"><a href="#"><img src="images/info.gif" width="16" height="16" border="0" align="absmiddle" onclick='OuvrirPop("parcours.html","fencent",10,10,420,380,"menubar=no,scrollbars=no,statusbar=no")' /></a></span>Sp&eacute;cialit&eacute;/Parcours</td>
                  <td height="0">:</td>
                  <td height="12" align="left" class="required_info"><? echo $specialite;?></td>
                </tr>
				-->	
                <tr align="left"> 
                  <td height="13" colspan="3"><br><br></td>
                </tr>



               
              
                <!-- <tr align="left"> 
                  <td height="40"><span class="Style5"><a href="#"><img src="images/info.gif" width="16" height="16" border="0" align="absmiddle" onclick='OuvrirPop("nature_ue.html","fencent",10,10,420,380,"menubar=no,scrollbars=yes,statusbar=no")' /></a></span> 
                    <span class="Style5"><font color="DD0269">*</font></span> 
                    Intitul&eacute; propos&eacute;</td>
                  <td height="25">:</td>
                  <td height="25" class="required_info"> 
                    
                    <? echo $nature; ?></td>
                </tr>
				-->
                <!--
                <tr align="left"> 
                  <td height="25"><span class="Style5"><font color="DD0269">*</font></span> 
                    Semestre</td>
                  <td height="25">:</td>
                  <td height="25" class="required_info"> 
				  
                      <?php for($i=1; $i<=6; $i++){
					        
							if($i==1) $sems="1 er semestre";
							else      $sems="%s &eacute;me semestre";
							
							$val = "S".$i;
					   if($val == $semestre)  printf($sems, $i);
                       } ?>
                    
				  </td>
                </tr>
                <tr align="left"> 
                  <td height="25" colspan="3"><span class="Style5">*</span> 
                    Volume horaire (nombre d&#8217;heure par semestre):</td>
                </tr>
                <tr align="left"> 
                  <td height="25">&nbsp;</td>
                  <td height="25">&nbsp;</td>
                  <td height="25" class="required_info"><b>Cours:</b> 
                 
                      <?php for($i=0; $i<=100; $i++){
					        
													
							$val = $i;
							$val2 = $i.".5";
							
					  if($val == $volume_cours)  echo $val;
					  if($val2 == $volume_cours) echo $val2;
                       } ?>
                    
				  
				  &nbsp;&nbsp;&nbsp;<b>TD:</b> 
                     
					 
					 
					 
                      
                      <?php for($i=0; $i<=100; $i++){
					        
													
							$val = $i;
							$val2 = $i.".5";
							
					   if($val == $volum_td)  echo $val;
					   if($val2 == $volum_td) echo $val2;
					   
					    } ?>
                     
					 
					 
                  &nbsp;&nbsp;&nbsp;<b>TP:</b> <span class="Style7"> 
                    
                      
                      <?php for($i=0; $i<=100; $i++){
					        
													
							$val = $i;
							$val2 = $i.".5";
					  
					  if($val == $volum_tp) echo $val;
					  if($val2 == $volum_tp) echo $val2;
                      } ?>
                     
					 
					    </span></span></span></td>
                </tr>
                <tr align="left"> 
                  <td height="12">Coefficient </td>
                  <td height="12">:</td>
                  <td height="12" class="required_info">
                  	
                     
                      <?php for($i=1;$i<=10;$i++){
					        
							
					  if($i == $coeifficient) echo $i;
                      } ?>
                     
					
				
					</td>
                </tr>
                <tr align="left"> 
                  <td height="25">Cr&eacute;dits (ECTS)</td>
                  <td height="25">:</td>
                  <td height="25" class="required_info"> 

				
                      
                      <?php for($i=1;$i<=30;$i++){
						
					  if($i == $credit) echo $i." ECTS";
                      } ?>
                    
					
					</td>
                </tr>
				-->

          </table>
            
	  
		 <? }       
		 
	//	var_dump($details_unite_indexation); 
		 while (list($clef,$valeur2)=each($details_unite_indexation))
{  

 
 $discipline           = $valeur2["discipline"];
 $contexte      	 = $valeur2["description"];
 $objectif       = $valeur2["objectif"];
 $cause      	 = $valeur2["cause"];
 $depense      	 = $valeur2["depense"];
 $depense_etablissement      	 = $valeur2["depense_etablissement"];
 
 $public_cible   = $valeur2[6];
 
 
 
 $prerequis      = $valeur2[8];
 $mot_cles       = $valeur2[4];
 ?>
<tr align="left"> 
                  <td height="13" colspan="3"><br><br></td>
</tr>

 <tr align="left"> 
                  <td colspan="3"> <strong><img src="images/navi_arerow.gif" width="6" height="21" align="absmiddle" /> 
                    Fiche signal&eacute;tique de projet:</strong></td>
                </tr>
                <tr valign="top" bgcolor="#345491"> 
                  <td colspan="3"><img src="images/gif/pix.gif" width="1" height="1"></td>
                </tr> 
				
				<tr align="left"> 
                  <td height="25" width="123">Public cible</td>
                  <td width="5" height="0">:</td>
                  <td height="0" width="370"><? echo $public_cible; ?></td>
                </tr>
				
				<tr align="left"> 
                  <td height="25" width="123"> 
                    Objectifs P&eacute;dagogiques</td>
                  <td width="5" height="0">:</td>
                  <td height="0" width="370"><? echo $objectif; ?></td>
                </tr>
				
				<tr align="left"> 
                  <td height="25" width="123" >Profil du m&eacute;tier vis&eacute; par la formation :</td>
                  <td width="5" height="0">:</td>
                  <td height="25" class="required_info" width="370">
                  	<? echo $discipline; ?></td>
                </tr>
				<tr align="left"> 
                  <td height="25" width="123">Contexte du projet :</td>
                  <td width="5" height="0">:</td>
                  <td height="0" width="370"><? echo $contexte; ?></td>
                </tr>
             
                <tr align="left"> 
                  <td height="25" width="123"> 
                    Pourquoi avez-vous d&eacute;cid&eacute; de proposer cette formation distance ?</td>
                  <td width="5" height="25">:</td>
                  <td height="25" width="370"><? echo $cause; ?></td>
                </tr>
				
				<tr align="left"> 
                  <td height="25" width="123"> 
                    Cette formation, est-elle dispens&eacute;e en pr&eacute;sentiel dans votre &eacute;tablissement ou dans d'autres &eacute;tablissements universitaires?</td>
                  <td width="5" height="25">:</td>
                  <td height="25" width="370"><? if($depense=='0') echo 'Oui';else echo 'Non'; ?></td>
                </tr>
				
				<tr align="left"> 
                  <td height="25" width="123"> 
                    l'intitul&eacute; et l'&eacute;tablissement habilit&eacute; :
					</td>
                  <td width="5" height="25">:</td>
                  <td height="25" width="370"><? echo $depense_etablissement; ?></td>
                </tr>
			
			
 
 
 
 

 
 
		 
<? } ?>		 
		 
		 
		 
		 </td>
		 
		 
    </tr>
	
	
 
  </table>
  </td>
  			<!-- Abdellatif -->
			  <td VALIGN="top">
			  	
				
				  <table  width="480" border="0" align="center" valign="top" cellpadding="0" cellspacing="0">
					
					
						<tr align="left"> <td colspan="3"> <strong><img src="images/navi_arerow.gif" width="6" height="21" align="absmiddle" /> 
					                    Liste des partenaires du projet:</strong></td>
					                </tr>
						<tr align="left">	
								
								
								<table class="table" align="left" >
											  <tr >
													<th class="MYTABLE"><?php echo "nom";?></th>
													<th class="MYTABLE"><?php echo "prenom";?></th>
													<th class="MYTABLE"><?php echo "grade";?></th>
													<th class="MYTABLE"><?php echo "specialite";?></th>
													<th class="MYTABLE"><?php echo "email";?></th>
													
												</tr>
											
									 <?   
									// var_dump($coconcepteur->fetch_object());    
									 while($coconcepteur->fetch_object())
									 {	
									
										//$grade=new grade();
										//$grade->SELECT($grade->get_name_code_grade()."='".$coconcepteur->get_grade()."'");
										/*$grade->fetch_object();
										$grade =$grade->get_libelle() ;  

										 */
								
										echo "<tr  class=\"ligne\">";
										echo "<td class=\"MYTABLE\">".$coconcepteur->get_nom()."</td>";
										echo "<td class=\"MYTABLE\">".$coconcepteur->get_prenom()."</td>";
										echo "<td class=\"MYTABLE\">".""."</td>";
										echo "<td class=\"MYTABLE\">".$coconcepteur->get_specialite()."</td>";
										echo "<td class=\"MYTABLE\">".$coconcepteur->get_email()."</td>";
										
										
										echo "</tr>";
									
								
									
									}
									
									?>
									</table>	
							
						</tr>
				</table>
			  </td>
			  <!-- End Modification Abdellatif -->
    </tr>
</table>


<?
} // Fin liste modification
?>

</body>
</html>
